<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<form th:action="@{/user/insertUser}" method="post">
    <input type="hidden" name="userId" th:value="${user.userId}">
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${user.password}"/><br/>
    用户类型：<input type="radio" name="userType" value="1" th:checked="${user.userType==1}"/>普通用户
            <input type="radio" name="userType" value="0" th:checked="${user.userType==0}"/>管理员<br/>
    角色：<input type="radio" name="roleId" value="1" th:checked="${user.roleId==1}"/>开发人员
         <input type="radio" name="roleId" value="2" th:checked="${user.roleId==2}"/>测试人员<br/>
    信息描述：<input type="text" name="userDescription" th:value="${user.userDescription}"/><br/>
    <input type="submit" value="保存"/><br/>
</form>

</body>
</html>